#include"stdio.h"
typedef unsigned char *byte_pointer;


void show_bytes(byte_pointer start,int len)
  {
    int i;
    for(i=0;i<len;i++)
         {
            printf("%.2x",start[i]);
         }
printf("\n");
}
void show_int(short int x)
{
  show_bytes((byte_pointer)&x,sizeof(short int));
}



void main()
{
  short int  v=-12345;
  unsigned short uv=(unsigned short) v;
  printf("v=%d,uv=%u\n",v,uv);
 printf("v showbytes:\n");
show_int(v);
printf("uv showbytes:\n");

show_int(uv);
}
